package com.ynunicom.dc.dingdingcontractapp.dto.exception;

import lombok.Data;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: jinye.Bai
 * @date: 2020/5/28 10:25
 */
@Data
public class RsponseEmptyException extends Exception {

    private String processInstanceId;

    private Integer code;

    public RsponseEmptyException(int code, String message) {
        super(message);
        this.code = code;
    }

    public RsponseEmptyException(String message,String processInstanceId) {
        super(message);
        this.code = HttpServletResponse.SC_BAD_GATEWAY;
        this.processInstanceId = processInstanceId;
    }

    public RsponseEmptyException(String processInstanceId){
        super("钉钉服务器返回出错");
        this.code = HttpServletResponse.SC_BAD_GATEWAY;
        this.processInstanceId = processInstanceId;
    }

}
